JDBC 连接 Oracle: Listener refused the connection with the following error: ORA |
您所在的位置:网站首页 › oracle listener refused › JDBC 连接 Oracle: Listener refused the connection with the following error: ORA |
刚解决连接的问题,现在又碰上了这个,干就完事了。 问题分析,这个是 oracle 在建立时 SID 的问题, SID 属性 标识唯一 那么问题就出在 orcl 上了。 1. win + R 输入 regedit 打开路径 HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraDB18Home1; 2. 找到 ORACLE_SID 3. 双击,查看数据值,将 url 如 jdbc:oracle:thin:@localhost:1521:orcl,最后的 orcl 改为 该项值就好了,这里改为 oracle 不建议改变 SID 的值。 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |